package com.wuchao.service.serviceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wuchao.mapper.TypeMapper;
import com.wuchao.pojo.Type;
import com.wuchao.service.TypeService;
/**
 * @Author wuchao66
 * @Date 2022/9/29 10:03
 * @PackageName:com.wuchao.service.serviceImpl
 * @ClassName: TypeServiceImpl
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Service
public class TypeServiceImpl implements TypeService{

    @Resource
    private TypeMapper typeMapper;//自动注入，ioc

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return typeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Type record) {
        return typeMapper.insert(record);
    }

    @Override
    public int insertSelective(Type record) {
        return typeMapper.insertSelective(record);
    }

    @Override
    public Type selectByPrimaryKey(Integer id) {
        return typeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Type record) {
        return typeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Type record) {
        return typeMapper.updateByPrimaryKey(record);
    }

}
